package com.edu.publisher.service.impl;

import com.edu.publisher.beans.TradeOrderProvinceAmount;
import com.edu.publisher.beans.TradeOrderProvinceCt;
import com.edu.publisher.beans.TradeOrderSourceAmount;
import com.edu.publisher.beans.TradeOrderSourceCt;
import com.edu.publisher.mapper.TradeStatsMapper;
import com.edu.publisher.service.TradeStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TradeStatsServiceImpl implements TradeStatsService {

    @Autowired
    private TradeStatsMapper tradeStatsMapper;

    @Override
    public List<TradeOrderProvinceCt> getTradeOrderProvinceCt(Integer date) {
        return tradeStatsMapper.selectTradeOrderProvinceCt(date);
    }

    @Override
    public List<TradeOrderProvinceAmount> getTradeOrderProvinceAmount(Integer date) {
        return tradeStatsMapper.selectTradeOrderProvinceAmount(date);
    }

    @Override
    public List<TradeOrderSourceCt> getTradeOrderSourceCt(Integer date) {
        return tradeStatsMapper.selectTradeOrderSourceCt(date);
    }

    @Override
    public List<TradeOrderSourceAmount> getTradeOrderSourceAmount(Integer date) {
        return tradeStatsMapper.selectTradeOrderSourceAmount(date);
    }



}
